﻿@page "/datasources/index"
@attribute [Authorize(Policy = nameof(ApiRoutes.DataSource.QueryDataSources))]


<CascadingValue Value="this" IsFixed="true">
    <DynamicComponent Type="_dynamicComponentType"></DynamicComponent>
</CascadingValue>

@code {
    private Type _dynamicComponentType = typeof(DataSourceTable);

    public void SetDynamicComponentType(Type type)
    {
        _dynamicComponentType = type;
        StateHasChanged();
    }

}